package com.pig4cloud.pigx.shop.api.feign;

import com.pig4cloud.pigx.common.core.constant.SecurityConstants;
import com.pig4cloud.pigx.common.core.constant.ServiceNameConstants;
import com.pig4cloud.pigx.common.core.util.R;
import com.pig4cloud.pigx.shop.api.entity.GoodsGift;
import com.pig4cloud.pigx.shop.api.vo.GoodsSpuVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(contextId = "remoteGoodsGiftService", value = ServiceNameConstants.SHOP_SERVICE)
public interface RemoteGoodsGiftService {

	/**
	 * 根据ID获取礼品信息
	 * @param id
	 * @param from
	 * @return
	 */
	@GetMapping("/goods/gift/info/{id}")
	R<GoodsGift> getGiftInfoById(@PathVariable("id") Long id, @RequestHeader(SecurityConstants.FROM) String from);

}
